package com.trex.modules.tbl.workerplace.entity;

import javax.validation.constraints.Size;
import java.util.Date;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 人员场所对照Entity
 * @author jy
 * @version 2022-12-09
 */
@Table(name="tbl_zd_workerdz", alias="a", label="人员场所对照信息", columns={
		@Column(name="rec_id", attrName="recId", label="rec_id", isPK=true),
		@Column(name="worker_id", attrName="workerId", label="员工ID"),
		@Column(name="worker_name", attrName="workerName", label="员工姓名", queryType=QueryType.LIKE),
		@Column(name="csbh", attrName="csbh", label="场所编号"),
		@Column(name="csmc", attrName="csmc", label="场所名称"),
		@Column(name="dele_flag", attrName="deleFlag", label="删除标志位", isQuery=false),
		@Column(name="user_code", attrName="userCode", label="操作人", isQuery=false),
		@Column(name="user_name", attrName="userName", label="操作人", isQuery=false),
		@Column(name="upd_time", attrName="updTime", label="更新时间", isQuery=false, isUpdateForce=true),
		@Column(name="ip", attrName="ip", label="IP地址", isQuery=false),
	}, orderBy="a.rec_id DESC"
)
public class TblZdWorkerdz extends DataEntity<TblZdWorkerdz> {
	
	private static final long serialVersionUID = 1L;
	private String recId;		// rec_id
	private String workerId;		// 员工ID
	private String workerName;		// 员工姓名
	private String csbh;		// 场所编号
	private String csmc;		// 场所名称
	private String deleFlag;		// 删除标志位
	private String userCode;		// 操作人
	private String userName;		// 操作人
	private Date updTime;		// 更新时间
	private String ip;		// IP地址

	public TblZdWorkerdz() {
		this(null);
	}
	
	public TblZdWorkerdz(String id){
		super(id);
	}
	
	public String getRecId() {
		return recId;
	}

	public void setRecId(String recId) {
		this.recId = recId;
	}
	
	@Size(min=0, max=20, message="员工ID长度不能超过 20 个字符")
	public String getWorkerId() {
		return workerId;
	}

	public void setWorkerId(String workerId) {
		this.workerId = workerId;
	}
	
	@Size(min=0, max=50, message="员工姓名长度不能超过 50 个字符")
	public String getWorkerName() {
		return workerName;
	}

	public void setWorkerName(String workerName) {
		this.workerName = workerName;
	}
	
	@Size(min=0, max=6, message="场所编号长度不能超过 6 个字符")
	public String getCsbh() {
		return csbh;
	}

	public void setCsbh(String csbh) {
		this.csbh = csbh;
	}
	
	@Size(min=0, max=50, message="场所名称长度不能超过 50 个字符")
	public String getCsmc() {
		return csmc;
	}

	public void setCsmc(String csmc) {
		this.csmc = csmc;
	}
	
	@Size(min=0, max=1, message="删除标志位长度不能超过 1 个字符")
	public String getDeleFlag() {
		return deleFlag;
	}

	public void setDeleFlag(String deleFlag) {
		this.deleFlag = deleFlag;
	}
	
	@Size(min=0, max=20, message="操作人长度不能超过 20 个字符")
	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	
	@Size(min=0, max=50, message="操作人长度不能超过 50 个字符")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdTime() {
		return updTime;
	}

	public void setUpdTime(Date updTime) {
		this.updTime = updTime;
	}
	
	@Size(min=0, max=15, message="IP地址长度不能超过 15 个字符")
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	
}